package com.example.meituanservice.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.meituanservice.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

//    @Select("select * from user where username = #{userName} and password = #{password}")
//    User selectByUser(String username, String password);

    @Select("select * from user where username = #{username} ")
    User selectByUsername(String username);
}
